mimic std::optional for flagged Waypoint fields. (#975)
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Sat, 7 Jan 2023 15:18:02 +0000 (08:18 -0700)
committerGitHub <noreply@github.com>
Sat, 7 Jan 2023 15:18:02 +0000 (08:18 -0700)
commitcfe18de076d573d86b4e4666710f96d2bb69acd6
tree7863011366c66b4e8f226cd557052a623d189d43
parent9568674036933068b65d976f1a7200405c5104a8
mimic std::optional for flagged Waypoint fields. (#975)

* mimic std::optional for flagged Waypoint fields.

* manual adjustments to waypt access usage.

* split optional Waypoint flags, tune packing.

* bring op_flags into Waypoint.

* add comments about future Waypoint optional fields.

* sort Waypoint class almost normally.

private members refered to with decltype need to be defined
before they are referred to.

* remove extra parens around *has_value().

* remove extra parens around *value_or().

* remove more extra parens.
32 files changed:
defs.h
dg-100.cc
exif.cc
garmin.cc
garmin_fit.cc
garmin_fit.h
garmin_fs.cc
garmin_gpi.cc
garmin_txt.cc
gdb.cc
globalsat_sport.cc
gpssim.cc
gpx.cc
gtrnctr.cc
humminbird.cc
kml.cc
lowranceusr.cc
mtk_logger.cc
navilink.cc
nmea.cc
ozi.cc
qstarz_bl_1000.cc
random.cc
route.cc
sbn.cc
skytraq.cc
subrip.cc
trackfilter.cc
unicsv.cc
v900.cc
waypt.cc
xcsv.cc